import { request } from "./http";
export function login(data){       //登录
    return request('post','/admin/login',data)
}

export function getgoods(sum,sum2,val){  //商品列表
    return request('get',`/admin/goods/${sum}?limit=${sum2}&tab=${val}`)
}

export function getcreate(){  //发布商品
    return request('get',`/admin/goods/create`)
}

export function getorder(a1,a2,val){
    return request('get',`admin/order/${a1}?limit=${a2}&tab=${val}`)
}
